{extend name="public:base"/}

{block name="title"}商品列表{/block}
{block name="style"}{/block}

{block name="main"}

<section class="content">

    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header m-b-sm">
                    <h3 class="box-title">商品列表</h3>
                </div>
                <!--
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="/backend/addons/rf-merchants/config/index"> 配置管理</a></li>
                        <li><a href="/backend/addons/rf-merchants/config-cate/index"> 配置分类</a></li>
                        <li class="pull-right">
                            <a class="btn btn-primary btn-xs" href="/backend/addons/rf-wechat/rule/edit"><i
                                    class="fa fa-plus"></i> 创建</a>
                        </li>
                    </ul>
                </div>
                -->
                <div class="farPaddingJustV">
                    <div class="col-sm-8">
                        <form method="get">
    
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="id"
                                           placeholder="ID">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="mer_id"
                                           placeholder="商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="store_name"
                                           placeholder="商品名称">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="store_info"
                                           placeholder="商品简介">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="keyword"
                                           placeholder="关键字">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="bar_code"
                                           placeholder="产品条码（一维码）">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="cate_id"
                                           placeholder="分类id">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="unit_name"
                                           placeholder="单位名">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="sort"
                                           placeholder="排序">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="sales"
                                           placeholder="销量">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="stock"
                                           placeholder="库存">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="ficti"
                                           placeholder="虚拟销量">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="browse"
                                           placeholder="浏览量">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="code_path"
                                           placeholder="产品二维码地址(用户小程序海报)">
                                </div>
                            </div>
        
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="soure_link"
                                           placeholder="淘宝京东1688类型">
                                </div>
                            </div>
    
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                        <button class="btn btn-white"><i class="fa fa-search"></i> 搜索</button>
                                    </span>
                                </div>
                            </div>

                        </form>
                    </div>
                </div>
                <div class="clearfix"></div>

                <div class="box-body table-responsive">

                    <div class="menu-buttons m-b-sm">
                        <a href="<?=url('admin/StoreProduct/index',)?>" class="btn btn-sm btn-primary"><i class="fa fa-plus" ></i>新增商品</a>
                    </div>

                    <table id="table-index" class="table table-hover"><thead>
                    <tr>
                        <th style="width: 20%;">ID</th>
     
                        <th style="width: 10%;">商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)</th>
                    
                        <th style="width: 10%;">商品名称</th>
          
                        <th style="width: 10%;">商品简介</th>
          
                        <th style="width: 10%;">关键字</th>
          
                        <th style="width: 10%;">产品条码（一维码）</th>
          
                        <th style="width: 10%;">分类id</th>
          
                        <th style="width: 10%;">商品价格</th>
          
                        <th style="width: 10%;">会员价格</th>
          
                        <th style="width: 10%;">市场价</th>
          
                        <th style="width: 10%;">邮费</th>
          
                        <th style="width: 10%;">单位名</th>
          
                        <th style="width: 10%;">排序</th>
          
                        <th style="width: 10%;">销量</th>
          
                        <th style="width: 10%;">库存</th>
          
                        <th style="width: 10%;">状态（0：未上架，1：上架）</th>
          
                        <th style="width: 10%;">是否热卖</th>
          
                        <th style="width: 10%;">是否优惠</th>
          
                        <th style="width: 10%;">是否精品</th>
          
                        <th style="width: 10%;">是否新品</th>
               
                        <th style="width: 10%;">是否包邮</th>
          
                        <th style="width: 10%;">商户是否代理 0不可代理1可代理</th>
          
                        <th style="width: 10%;">获得积分</th>
          
                        <th style="width: 10%;">成本价</th>
          
                        <th style="width: 10%;">秒杀状态 0 未开启 1已开启</th>
          
                        <th style="width: 10%;">砍价状态 0未开启 1开启</th>
          
                        <th style="width: 10%;">是否优品推荐</th>
          
                        <th style="width: 10%;">虚拟销量</th>
          
                        <th style="width: 10%;">浏览量</th>
          
                        <th style="width: 10%;">产品二维码地址(用户小程序海报)</th>
          
                        <th style="width: 10%;">淘宝京东1688类型</th>
                             <th style="width: 10%;">操作</th>
                    </tr>

                    </thead>
                        <tbody>

 <?php if(!empty($dataProvider)){foreach($dataProvider as $k=>$v): ?>
                        <tr>
                            <td><?=$v['id']?></td>
            
                            <td>
                                <span class="m-l-sm"><?=$v['mer_id']?></span>
                            </td>
                                            
                            <td>
                                <span class="m-l-sm"><?=$v['store_name']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['store_info']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['keyword']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['bar_code']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['cate_id']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['price']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['vip_price']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['ot_price']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['postage']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['unit_name']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['sort']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['sales']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['stock']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['is_show']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['is_hot']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['is_benefit']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['is_best']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['is_new']?></span>
                            </td>
                                
                            <td>
                                <span class="m-l-sm"><?=$v['is_postage']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['mer_use']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['give_integral']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['cost']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['is_seckill']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['is_bargain']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['is_good']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['ficti']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['browse']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['code_path']?></span>
                            </td>
                    
                            <td>
                                <span class="m-l-sm"><?=$v['soure_link']?></span>
                            </td>
            
                            <td>
                                <a class="btn btn-primary btn-xs" href="<?=url('admin/StoreProduct/update',['id'=>$v['id']])?>">编辑</a>
                                <a class="btn btn-danger btn-xs" href="<?=url('admin/StoreProduct/index',['id'=>$v['id']])?>" onclick="ptyConfirmDelete('<?=url('admin/StoreProduct/delete',['id'=>$v['id']])?>');return false;">删除</a>

                            </td>
                        </tr>

  <?php endforeach; } ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
</section>
{/block}

{block name="js"}
{/block}


